﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="产品理化参数.aspx.cs" Inherits="syc.ZhiJian.产品理化参数" %>

<head id="Head1" runat="server">
    <title></title>
</head>
<body>    
    <script type="text/javascript" language="javascript" src="/common.js"></script>
  <form id="form1" runat="server">
    <div class="wintop">
        产品理化参数信息</div>
     <asp:Panel ID="Panel1" runat="server" CssClass="panel" >
        <asp:Button ID="Add" runat="server" 
             Text="新 增" CssClass="button" onclick="Add_Click" 
             UseSubmitBehavior="False"/>    
         <asp:Button ID="Edit" runat="server" CssClass="button" onclick="Edit_Click" 
             Text="修 改" UseSubmitBehavior="False" />
         <asp:Button ID="Save" runat="server" Text="保 存" CssClass="button" 
             onclick="Save_Click" Visible="False" UseSubmitBehavior="False"/>
         <asp:Button ID="Delete" runat="server" CssClass="button" onclick="Delete_Click" 
             Text="删 除" onclientclick="if(!confirm('确认删除该条记录吗?')) return false;" 
             UseSubmitBehavior="False" />
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
         <asp:Button ID="Back" runat="server" Text="返 回" CssClass="button" 
             Visible="False" onclick="Back_Click" UseSubmitBehavior="False"/>
         <br />         
    </asp:Panel>
    

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
        SelectCommand="SELECT distinct [入库单ID], [炉号] FROM [产品库存] WHERE ([入库单ID] = @入库单ID)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="109" Name="入库单ID" 
                QueryStringField="rukuid" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:Panel ID="Panel0" runat="server" CssClass="panel"  GroupingText="查  询">
    <span lang="zh-cn"><asp:SqlDataSource ID="DS_ChanPin" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
    SelectCommand="SELECT [ID],[品名]+' '+[钢级]+' '+[规格] AS 名称 FROM [产品]"></asp:SqlDataSource>
产品类别：<asp:DropDownList ID="ChanPin" runat="server" Width="150px" Font-Size="12px" DataSourceID="DS_ChanPin" DataTextField="名称" DataValueField="ID">

</asp:DropDownList>
         <span lang="zh-cn">&nbsp;&nbsp; 炉&nbsp;&nbsp;&nbsp;&nbsp; 号：<asp:TextBox ID="LuHao" runat="server" 
             Width="90px"></asp:TextBox><asp:Button ID="Find" runat="server" CssClass="wsbutton" onclick="Find_Click" 
            Text="筛 选" />
         </span>
   
    </asp:Panel>
     <asp:Panel ID="Panel2" runat="server" CssClass="panel" Visible=false>
    
     <table width="642" border="1" cellspacing="0" cellpadding="0"   style=" border-color:#000000"> 
 
  <tr>
    <td colspan="10"><div align="center">化学成分(%)</div></td>
  </tr>
  <tr>
    <td width="83" height="18"><div align="center">产品</div></td>
    <td colspan="2"><div align="center">炉号</div> </td>   
    <td width="59"><div align="center">C</div></td>
    <td width="59"><div align="center">Mn</div></td>
    <td width="64"><div align="center">Si</div></td>
    <td width="67"><div align="center">P</div></td>
    <td width="78"><div align="center">S</div></td>
    <td width="79"><div align="center">Cr</div></td>
    <td width="78"><div align="center">Ni</div></td>
  </tr>
 
  <tr>
     <td>
     
<asp:DropDownList ID="DropDownList2" runat="server" Width="150px" Font-Size="12px" DataSourceID="DS_ChanPin" DataTextField="名称" DataValueField="ID">
</asp:DropDownList>

</td>
    <td colspan="2"><div align="center">
       <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="SqlDataSource2" DataTextField="炉号" DataValueField="炉号" 
            AutoPostBack="true" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
       </asp:DropDownList>
      <asp:TextBox ID="LuHao0" runat="server" Width="77px"   
        onkeypress="if (event.keyCode==13) event.returnValue=false"        
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="C" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Mn" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Si" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="P" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="S" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Cr" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Ni" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
  </tr>
  <tr>
    <td><div align="center">Cu</div></td>
    <td><div align="center">Mo</div></td>
    <td colspan="2"><div align="center">Al</div></td>
    <td><div align="center">V</div></td>
    <td><div align="center">Bi</div></td>
    <td><div align="center">Sn</div></td>
    <td><div align="center">Pb</div></td>
    <td><div align="center">As</div></td>
    <td><div align="center">Sb</div></td>
  </tr>
  <tr>
    <td><div align="center">
      <asp:TextBox ID="Cu" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Mo" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="Al" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="V" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Bi" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Sn" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Pb" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="As" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Sb" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  
            CssClass="textbox"></asp:TextBox>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="5"><div align="center">拉伸试验(纵向)</div></td>
    <td colspan="4"><div align="center">冲击试验</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2"><div align="center">抗拉强度</div></td>
    <td colspan="2"><div align="center">屈伸极限</div></td>
    <td><div align="center">伸长率</div></td>
    <td colspan="2"><div align="center">横向冲击</div></td>
    <td colspan="2"><div align="center">纵向冲击</div></td>
  </tr>
  <tr>
    <td>
        <asp:TextBox ID="GH" runat="server" Visible="False"></asp:TextBox>
      </td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="klqd" runat="server" Width="98%"  CssClass="textbox" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  ></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="qsjx" runat="server" Width="98%"  CssClass="textbox" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  ></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="scl" runat="server" Width="98%"  CssClass="textbox"  onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  ></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="hx" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  style="TEXT-ALIGN:   center">合格</asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="zx" runat="server" Width="98%" ReadOnly="true" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<32 ||(event.keyCode>32&&event.keyCode<48) || event.keyCode>57)) event.returnValue=false  "  style="TEXT-ALIGN:   center"
            CssClass="textbox">合格</asp:TextBox>
    </div></td>
  </tr>
  <tr>
    <td width="83" height="18"><div align="center">通径检验</div></td>
    <td colspan="3"><div align="center">静水压试验</div></td>
    <td colspan="2"><div align="center">无损探伤</div></td>
    <td colspan="2"><div align="center">表面检验</div></td>
    <td colspan="2"><div align="center">尺寸</div></td>
  </tr>
  <tr>
    <td width="83" height="18" align="center"><div align="center">
        <asp:TextBox ID="tj" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="3" align="center"><div align="center">
        <asp:TextBox ID="jsy" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="2" align="center"><div align="center">
        <asp:TextBox ID="ws" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="2" align="center"><div align="center">
        <asp:TextBox ID="bm" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="2" align="center"><div align="center">
        <asp:TextBox ID="cc" runat="server" Width="98%"  ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
  </tr>
</table>

    </asp:Panel>

    <asp:Panel ID="Panel3" runat="server" CssClass="panel2" >
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
    </asp:Panel>
    
     <div class="gridframe">
        <div class="gridview">
        
            <table border="1" width="100%" cellspacing="0" cellpadding="0" bordercolor="#e5cfab">
	            <tr>
		            <td class="grid-title">产品理化参数<tr>
		            <td class="grid-back">
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                               
                              UpdateCommand="update [产品理化参数]set 供货ID=(select ID from 原料供货单位 where 名称=@名称),C=@C,Mn=@Mn,Si=@Si,P=@P,S=@Si,Cr=@Cr,Ni=@Ni,Cu=@Cu,
Mo=@Mo,Al=@Al,V=@V,Bi=@Bi,Sn=@Sn,Pb=@Pb,[As]=@As,Sb=@Sb,抗拉强度=@抗拉强度,
屈服极限=@屈服极限,伸长率=@伸长率 where ID=@ID"                    
                            >
                                                 
                            </asp:SqlDataSource>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True"  
                             AutoGenerateColumns="False" CssClass="grid" 
                            GridLines="None" ondatabound="GridView1_DataBound" 
                            onpageindexchanged="GridView1_PageIndexChanged" AllowSorting="True" 
                            UseAccessibleHeader="False" DataSourceID="SqlDataSource1" 
                            DataKeyNames="ID" >
                            <PagerSettings Visible="False" />
                            <RowStyle CssClass="grid-row-normal" />
                            <SelectedRowStyle   CssClass="grid-row-bright" />
                            <Columns>
                             <asp:TemplateField HeaderText="">
                                    <ItemTemplate>
                                        <asp:Button ID="Button1" runat="server" CommandName="Select" Text="选择" CssClass="hide"/>
                                        <img src="/Icons/online.gif" style="margin-top:2px;" alt="" />
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />                                    
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="20px" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="ID" SortExpression="ID" Visible="false">
                                    
                                     <ItemTemplate >
                                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>' ></asp:Label>
                                     </ItemTemplate>
                                     <HeaderStyle CssClass="grid-header" />
                                     <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="80px" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="品名" SortExpression="品名">                                    
                                    <ItemTemplate>
                                        <asp:Label ID="PM" runat="server" Text='<%# Bind("品名") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="45px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="供货商" SortExpression="名称">                                    
                                    <ItemTemplate>
                                        <asp:Label ID="Mc" runat="server" Text='<%# Bind("名称") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="45px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="炉号" SortExpression="炉号">
                                    
                                    <ItemTemplate>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("炉号") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="45px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="C" SortExpression="C">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("C") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("C") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mn" SortExpression="Mn">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Mn") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("Mn") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Si" SortExpression="Si">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Si") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("Si") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="P" SortExpression="P">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("P") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("P") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="S" SortExpression="S">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("S") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("S") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cr" SortExpression="Cr">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Cr") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("Cr") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ni" SortExpression="Ni">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Ni") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("Ni") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cu" SortExpression="Cu">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Cu") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label10" runat="server" Text='<%# Bind("Cu") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mo" SortExpression="Mo">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Mo") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label11" runat="server" Text='<%# Bind("Mo") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Al" SortExpression="Al">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("Al") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label12" runat="server" Text='<%# Bind("Al") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="V" SortExpression="V">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("V") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label13" runat="server" Text='<%# Bind("V") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Bi" SortExpression="Bi">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("Bi") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label14" runat="server" Text='<%# Bind("Bi") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Sn" SortExpression="Sn">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("Sn") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label15" runat="server" Text='<%# Bind("Sn") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Pb" SortExpression="Pb">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Pb") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label16" runat="server" Text='<%# Bind("Pb") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="As" SortExpression="As">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("As") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label17" runat="server" Text='<%# Bind("As") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="50px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Sb" SortExpression="Sb">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("Sb") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label18" runat="server" Text='<%# Bind("Sb") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="抗拉强度" SortExpression="抗拉强度">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox19" runat="server" Text='<%# Bind("抗拉强度") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label19" runat="server" Text='<%# Bind("抗拉强度") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="70px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="屈伸极限" SortExpression="屈服极限">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox20" runat="server" Text='<%# Bind("屈服极限") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label20" runat="server" Text='<%# Bind("屈服极限") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="70px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="伸长率" SortExpression="伸长率">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox21" runat="server" Text='<%# Bind("伸长率") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label21" runat="server" Text='<%# Bind("伸长率") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="70px" />
                                </asp:TemplateField>
                            </Columns>
                          </asp:GridView>
		            </td>
	            </tr>
	            <tr>
		            <td>   
		                 <table width="100%">
		                    <tr>
		                        <td class="pagebar">
                                    <asp:Button ID="Button_Pager_First" runat="server" Text="" ToolTip="首页" 
                                        CssClass="pageturn-first-b" onclick="Pager_Click" CommandName="--" />
                                    <asp:Button ID="Button_Pager_Prev" runat="server" Text="" ToolTip="上一页" 
                                        CssClass="pageturn-prev-b" onclick="Pager_Click" CommandName="-" />
                                    <input type="button" class="page-split" />第<asp:TextBox ID="TextBox_Pager" runat="server" CssClass="pageturn" 
                                        ontextchanged="Pager_Click"></asp:TextBox>页<input type="button" class="page-split" /><asp:Label ID="Label_Pages" runat="server"></asp:Label><input type="button" class="page-split" />
                                    
                                    <asp:Button ID="Button_Pager_Next" runat="server" Text="" ToolTip="下一页" 
                                        CssClass="pageturn-next-b" onclick="Pager_Click" CommandName="+" />
                                    <asp:Button ID="Button_Pager_Last" runat="server" Text="" ToolTip="末页" 
                                        CssClass="pageturn-last-b" onclick="Pager_Click" CommandName="++" />
                                </td>
                                <td align="right">
                                    <asp:Label ID="Label_Total" runat="server" CssClass="grid_totalrows"></asp:Label>
                                </td>
                            </tr>
                       </table>

		            </td>
	            </tr>
            </table>
            

        </div>
    </div>
    <script>
        var textboxs = document.getElementsByTagName("input");
        var i;
        for (i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "textbox") {
                textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
                textboxs[i].onfocus = function(e) { this.select(); };
            }
            else if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }

        }
        var rows = document.getElementsByTagName("tr");
        for (i = 0; i < rows.length; i++) {

            if (rows[i].className == "grid-row-normal") {
                rows[i].onmouseover = function() { this.className = "grid-row-bright"; };
                rows[i].onmouseout = function() { this.className = "grid-row-normal"; };
                rows[i].onclick = function() { this.firstChild.firstChild.click(); };
            }
        }
        var tds = document.getElementsByTagName("td");
        for (i = 0; i < tds.length; i++) {
            if (tds[i].className == "detailheader") {
                tds[i].innerHTML = tds[i].innerHTML.replace("*", "<span class=required>*</span>");
            }
        }

        document.body.onkeypress = function(e) {
            if (!e) e = window.event;
            var tag = e.srcElement;
            if (!tag) tag = e.target;
            if (tag.className.toLowerCase() != "textbox") return;
            var i;
            if (e.keyCode == 13) {
                for (i = 0; i < textboxs.length; i++) {
                    if (tag == textboxs[i]) {
                        //   alert(i);
                        if (i < textboxs.length - 1) {
                            textboxs[i + 1].focus();
                        }
                        else {
                            textboxs[textboxs.length].focus();
                        }
                    }
                }
            }
        };   
</script>


    </form>
    </body>
</html>